package org.lboot.flow.module.define.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author kindear
 * 流程定义新增参数
 */

@Data
@ApiModel(value = "流程定义新增参数")
public class FlowDefineCreateParams {

    @ApiModelProperty(value = "流程图标")
    String flowIcon;

    @NotBlank(message = "流程分组不可为空")
    @ApiModelProperty("流程分组")
    String flowGroup;

    @NotBlank(message = "流程定义编码不可为空")
    @ApiModelProperty("流程定义编码")
    String flowCode;

    @NotBlank(message = "流程名称不可为空")
    @ApiModelProperty("流程名称")
    String flowName;

    @ApiModelProperty("流程描述")
    String description;

    @ApiModelProperty(value = "表单定义",notes = "JSON字符串")
    String flowWidgets;

    @NotBlank(message = "流程定义类型不可为空")
    @ApiModelProperty(value = "流程定义类型")
    String flowDefineType;


    @NotNull(message = "流程定义不可为空")
    @ApiModelProperty(value = "流程定义",notes = "JSON字符串")
    String flowDefine;

    @Min(0)
    @Max(1)
    @ApiModelProperty(value = "流程状态",notes = "1 正常 0 被删除")
    Integer status = 1;


}
